package com.yatube.nhx.api.controller.common;

import com.yatube.nhx.result.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Created with IDEA
 * @description -- 测试入口
 * @date 2024-04-25 12:21
 */
@RestController
@RequestMapping("test")
public class TestController {

    @GetMapping("/{id}")
    public R test(@PathVariable("id") Long id){
        return R.ok("Hello World!" + id);
    }

}
